import request from '@/utils/request'


const api_name = `/sysmanage/tenantType`

export default{

    //分页条件查询租户类型
    listPageByQuery(query){
        return request({
            url:`${api_name}/listPage`,
            method:'post',
            data:query
        })
    },
    //通过id获取租户类型信息
    getTenantTypeById(id){
        return request({
            url:`${api_name}/${id}`,
            method:'get'
        })
    },
    //保存租户类型数据
    saveTenantType(tenantType){
        return request({
            url:`${api_name}`,
            method:'put',
            data:tenantType
        })
    },
    //通过id删除租户类型
    deleteTenantTypeById(id){
        return request({
            url:`${api_name}/${id}`,
            method:'delete',
        })
    },
    //获取所有租户类型
    getAllList(){
        return request({
            url:`${api_name}/list`,
            method:'get'
        })
    }

}
